import request from '@/utils/request'

// 查询加班审批列表
export function listOaOvertimeApproval(query) {
  return request({
    url: '/module/oaOvertimeApproval/list',
    method: 'get',
    params: query
  })
}

// 查询加班审批详细
export function getOaOvertimeApproval(id) {
  return request({
    url: '/module/oaOvertimeApproval/' + id,
    method: 'get'
  })
}

// 新增加班审批
export function addOaOvertimeApproval(data) {
  return request({
    url: '/module/oaOvertimeApproval',
    method: 'post',
    data: data
  })
}

// 修改加班审批
export function updateOaOvertimeApproval(data) {
  return request({
    url: '/module/oaOvertimeApproval',
    method: 'put',
    data: data
  })
}

// 删除加班审批
export function delOaOvertimeApproval(id) {
  return request({
    url: '/module/oaOvertimeApproval/' + id,
    method: 'delete'
  })
}
